<template>
  <div>
    <!--子组件提供数据，父组件提供样式结构，例如表格里面嵌套表单-->
    <h2>作用域插槽</h2>
    <slot :games="games"> </slot>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
let games = ref(["王者荣耀", "绝地求生", "英雄联盟"]);
</script>

<style scoped></style>
